Xceed .NET Libraries Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / XceedCompressedStreamEx Class / Decompress Method / Decompress(Byte[],Int32,Int32) Method
An array of bytes to decompress. A maximum of count bytes are taken from this array and decompressed.
The byte offset in buffer at which to begin taking the data to decompress.
The maximum number of bytes to be taken from buffer.


In This Topic
    Decompress(Byte[],Int32,Int32) Method
    In This Topic
    Decompresses an array of Xceed formatted compressed bytes specifying the amount of bytes to decompress. Use this method to decompress data compatible with the ActiveX Xceed Zip Compression Library (XceedCompression object).
    Syntax
    'Declaration
     
    Public Overloads Shared Shadows Function Decompress( _
       ByVal buffer() As Byte, _
       ByVal offset As Integer, _
       ByVal count As Integer _
    ) As Byte()
    'Usage
     
    Dim buffer() As Byte
    Dim offset As Integer
    Dim count As Integer
    Dim value() As Byte
     
    value = XceedCompressedStreamEx.Decompress(buffer, offset, count)
    public new static byte[] Decompress( 
       byte[] buffer,
       int offset,
       int count
    )

    Parameters

    buffer
    An array of bytes to decompress. A maximum of count bytes are taken from this array and decompressed.
    offset
    The byte offset in buffer at which to begin taking the data to decompress.
    count
    The maximum number of bytes to be taken from buffer.

    Return Value

    An array of bytes containing the decompressed data. Can be empty.
    Remarks

    If the original data contained within the decompressed byte array was a string, then it is possible to retrieve the string using the System.Text.Encoding.GetString(System.Byte[]) method of the System.Text.Encoding class.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also